//
//  PicCartoonCollectionViewCell.m
//  Double
//
//  Created by 孟令博 on 15/5/26.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//
#import "PicCartoonCollectionViewCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation PicCartoonCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT-10)];
        self.myImageView.center = CGPointMake(WIDTH / 2, HEIGHT / 2);
        [self.contentView addSubview:self.myImageView];
        [self.myImageView release];
    }
    return self;
}

- (void)setImageCenter{
    self.myImageView.center = CGPointMake(WIDTH / 2, HEIGHT / 2);
}
- (void)dealloc
{
    [_myImageView release];
    [super dealloc];
}
-(void)layoutSubviews
{
    
    [super layoutSubviews];
}

@end
